<!DOCTYPE html>
<html lang="zxx">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<link rel="icon" href="images/favicon.png">
	<title>登录</title>

	<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
	<link rel="stylesheet" href="css/materialize.css">
	<link rel="stylesheet" href="css/loaders.css">
	<link rel="stylesheet" href="css/lightbox.css">
	<link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
	<link rel="stylesheet" href="css/owl.carousel.min.css">
	<link rel="stylesheet" href="css/owl.theme.default.min.css">
	<link rel="stylesheet" href="css/style.css">
   <link rel="stylesheet" href="css/layer.css">
</head>
<body>



	
	<!-- navbar -->
<!-- 	<div class="navbar">
		<div class="container">
			<div class="row">
				<div class="col s9">
					<div class="content-left">
						<a href="home.html"><h1><span>F</span>lyors</h1></a>
					</div>
				</div>
				
			</div>
		</div>
	</div> -->
	<!-- end navbar -->
	


	<!-- sign in -->
	<div class="sign-in segments-page">
		<div class="container">
		<div class="signin-contents">
			<div class="pages-title">
				<h3>登录</h3>
				<div class="line"></div>
			</div>
			<form id="form" onsubmit="return false" action="##" method="post">
				<input type="text" name="usermobile" id="usermobile"  placeholder="手机号码">
				<input type="password"  id="password"  name="password"placeholder="密码">
				<input type="password"  id="rpassword"   name="rpassword" placeholder="确认密码">
				<button class="button" onclick="login();"><i class="fa fa-send"></i>登录</button>
			</form>
			<div class="social-login">
				<h5>没有账号或者忘记密码？</h5>
				<div class="row">
					<div class="col s6">
						<button class="button-full button-facebook">忘记密码</button>
					</div>
					<div class="col s6">
						<button class="button-full button-twitter"  onclick = "window.location.href = 'sign-up.html'">注册账号</button>
					</div>
				</div>
				
			</div>
		</div>
		</div>
	</div>
	<!-- end sign in -->

	<script src="js/jquery.min.js"></script>
	<script src="js/materialize.js"></script>
	<script src="js/owl.carousel.min.js"></script>
	<script src="js/main.js"></script>
	<script src="js/layer.js"></script>
	<script src="js/jquerysession.js"></script>
	<script src="js/jquery.md5.js"></script>
<script>
	function login() {
	
	    if ($("#usermobile").val() == "") {
	        layer.open({
	            content: '请输入手机号码!'
	            , skin: 'msg'
	            , time: 2 //2秒后自动关闭
	        });
	        return false;
	    }
	    if ($("#password").val() == "") {
	
	        layer.open({
	            content: '请输入密码!'
	            , skin: 'msg'
	            , time: 2 //2秒后自动关闭
	        });
	        return false;
	    }
	
	    if ($("#password").val() !== $("#rpassword").val()) {
	
	        layer.open({
	            content: '俩次密码不一致!'
	            , skin: 'msg'
	            , time: 2 //2秒后自动关闭
	        });
	        return false;
	    }
		var url='Member/login';
		var params = $('#form').serializeObject();
	var result =api_request(url,'POST',params,'2');
	
	}
	
</script>
</body>
</html>
